<?php
class Mageex_RelatedProduct_Block_RelatedProduct extends Mage_Core_Block_Template
{
	public function _prepareLayout()
    {
		return parent::_prepareLayout();
    }
    
     public function getRelatedProduct()     
     { 
        if (!$this->hasData('relatedproduct')) {
            $this->setData('relatedproduct', Mage::registry('relatedproduct'));
        }
        return $this->getData('relatedproduct');
        
    }
}